﻿<%@ page language="java" import="java.util.*,net.skyedu.bean.*,net.skyedu.dao.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
   <base href="<%=basePath %>">
    <title>申诉详情</title>
    <link href="<%=basePath %>attend/frame/images/skin.css" rel="stylesheet" type="text/css" />
	<link href="<%=basePath %>attend/css/tab.css" rel="stylesheet" type="text/css" />
	<script language="javascript" type="text/javascript" src="<%=basePath %>attend/js/tab.js"></script>

</head> 
  
  <body>
  	<%
    	int appId = Integer.parseInt(request.getParameter("appID"));
  		String startTime=request.getParameter("startTime");
		String endTime=request.getParameter("endTime");
		String currentPage=request.getParameter("currentPage");
		
    	UserInfoDao ud = new UserInfoDao();
    	Appeal ea=new Appeal();
    	ea.setAppid(appId);
    	ea.setStatus(2);
    	ud.updateApp(ea);
    	AppealTime app = ud.searchAppById(appId);
    %>
	<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="17" valign="top" background="<%=basePath %>attend/frame/images/mail_leftbg.gif"><img src="<%=basePath %>attend/frame/images/left-top-right.gif" width="17" height="29" /></td>
    <td valign="top" background="<%=basePath %>attend/frame/images/content-bg.gif"><table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2">
      <tr>
        <td height="31"><div class="titlebt">申诉详情</div></td>
      </tr>
    </table></td>
    <td width="16" valign="top" background="<%=basePath %>attend/frame/images/mail_rightbg.gif"><img src="<%=basePath %>attend/frame/images/nav-right-bg.gif" width="16" height="29" /></td>
  </tr>
  <tr>
    <td valign="middle" background="<%=basePath %>attend/frame/images/mail_leftbg.gif">&nbsp;</td>
    <td valign="top" bgcolor="#F7F8F9">
    <!--    内嵌代码 Start-->
    <form action="ApproveParm" name="appparm" method="post">
	<table width="100%" border="0" cellspacing="0" cellpadding="0">
	<input name="appID" type="hidden" value="<%=appId %>">
	<input name="startTime" type="hidden" value="<%=startTime %>">
	<input name="endTime" type="hidden" value="<%=endTime %>">
	<input name="currentPage" type="hidden" value="<%=currentPage %>">
	  <tr>
	    <td><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
	  <tr>
	    <td height="30"><table width="100%" border="0" cellspacing="0" cellpadding="0">
	      <tr>
	        <td width="15" height="30"><img src="<%=basePath %>attend/images/tab_03.gif" width="15" height="30" /></td>
	        <td background="<%=basePath %>attend/images/tab_05.gif" height="30" class="STYLE1">&nbsp;</td>
	        </tr>
	    </table></td>
	        <td width="14"><img src="<%=basePath %>attend/images/tab_07.gif" width="14" height="30" /></td>
	  </tr>
	    </table></td>
	  </tr>
	  <tr>
	    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
	      <tr>
	        <td width="9" background="<%=basePath %>attend/images/tab_12.gif">&nbsp;</td>
	        <td bgcolor="#f3ffe3">
<!--内嵌Table Start-->
	      <table width="99%" border="0" cellspacing="1" cellpadding="0" bgcolor="#c0de98">
			  <tr>
			    <th colspan="4" height="26" background="<%=basePath %>attend/images/tab_14.gif" class="STYLE1"><div align="center" class="STYLE2"><%=app.getSendname() %>的申诉信息</div></th>
			    </tr>
			  <tr>
			    <td height="24" bgcolor="#FFFFFF" align="center" class="STYLE2 STYLE1">申诉时间：</td>
			    <td height="24" bgcolor="#FFFFFF" align="center" class="STYLE2 STYLE1"><%=app.getCreatetime() %></td>
			    <td height="24" bgcolor="#FFFFFF" align="center" class="STYLE2 STYLE1">考勤日期：</td>
			    <td height="24" bgcolor="#FFFFFF" align="center" class="STYLE2 STYLE1"><%=app.getAttdate() %></td>
			  </tr>
			  <tr>
			    <td height="24" bgcolor="#FFFFFF" align="center" class="STYLE2 STYLE1">上班时间：</td>
			    <td height="24" bgcolor="#FFFFFF" align="center" class="STYLE2 STYLE1"><%=app.getAttworktime() %></td>
			    <td height="24" bgcolor="#FFFFFF" align="center" class="STYLE2 STYLE1">下班时间：</td>
			    <td height="24" bgcolor="#FFFFFF" align="center" class="STYLE2 STYLE1"><%=app.getAttclosingtime() %></td>
			  </tr>
			  <tr>
			    <td height="24" bgcolor="#FFFFFF" align="center" class="STYLE2 STYLE1">申诉理由：</td>
			    <td colspan="3" height="24" bgcolor="#FFFFFF" class="STYLE2 STYLE1"><textarea name="ear" cols="50" rows="5" title="只能查看哦！" readonly="readonly" ><%=app.getContent()%></textarea></td>
		      </tr>
			  <tr>
			    <th colspan="4"height="26" background="<%=basePath %>attend/images/tab_14.gif" class="STYLE1"><div align="center" class="STYLE2">审批</div></th>
			    </tr>
			  <tr>
			    <td height="24" bgcolor="#FFFFFF" align="center" class="STYLE2 STYLE1">批复意见：</td>
			    <td colspan="3" height="24" bgcolor="#FFFFFF" class="STYLE2 STYLE1"><textarea name="reply" cols="50" rows="5" title="请输入意见哦！"><%=app.getReply()%></textarea></td>
			    </tr>
		</table>
<!-- 内嵌Table end-->
	        </td>
	        <td width="9" background="<%=basePath %>attend/images/tab_16.gif">&nbsp;</td>
	      </tr>
	    </table></td>
	  </tr>
	  <tr>
	    <td height="29">
	    <table width="100%" border="0" cellspacing="0" cellpadding="0">
	      <tr>
	        <td width="15" height="29"><img src="<%=basePath %>attend/images/tab_20.gif" width="15" height="29" /></td>
	        <td background="<%=basePath %>attend/images/tab_21.gif" align="center" class="STYLE2 STYLE1"><%if(app.getType()==0){%><input name="submit" type="submit" value="批 准">&nbsp;
	        &nbsp;<input name="reset" type="reset" value="重 置">&nbsp;&nbsp;&nbsp;&nbsp;<a href="Approve?appID=<%=appId %>&startTime=<%=startTime %>&endTime=<%=endTime %>&currentPage=<%=currentPage %>&sta=2"><font color="Green">驳&nbsp;&nbsp;回</font></a>
	        <%}if(app.getType()==1){ %><font color="red">已批复</font><%}if(app.getType()==2){ %><font color="red">已驳回</font><%} %>&nbsp;
	        &nbsp;<a href="Accepts?rid=<%=app.getRecipientid() %>&startTime=<%=startTime %>&endTime=<%=endTime %>&currentPage=<%=currentPage %>">返回上一页</a></td>
	        <td width="14"><img src="<%=basePath %>attend/images/tab_22.gif" width="14" height="29" /></td>
	      </tr>
	    </table></td>
	  </tr>
	</table>
	</form>
	<!--内嵌代码 end-->
	</td>
    <td background="<%=basePath %>attend/frame/images/mail_rightbg.gif">&nbsp;</td>
  </tr>
  <tr>
    <td valign="bottom" background="/frame/images/mail_leftbg.gif"><img src="<%=basePath %>attend/frame/images/buttom_left2.gif" width="17" height="17" /></td>
    <td background="<%=basePath %>attend/frame/images/buttom_bgs.gif"><img src="<%=basePath %>attend/frame/images/buttom_bgs.gif" width="17" height="17" /></td>
    <td valign="bottom" background="/frame/images/mail_rightbg.gif"><img src="<%=basePath %>attend/frame/images/buttom_right2.gif" width="16" height="17" /></td>
  </tr>
</table>
  </body>
</html>
